package main

import (
	"trpg-base/router"
	"trpg-common/config"

	"github.com/gin-gonic/gin"
)

func main() {
	// 初始化gin
	ginEngine := gin.New()
	router.RegisterRouter(ginEngine)
	err := ginEngine.Run(":" + config.GetString("port"))
	if err != nil {
		panic(err)
	}
}
